{% extends "master.html" %}

{% block title %}检视日志 {{ cdate|date:"" }}{% endblock %}

{% block body %}
	<a href="/dlog/dcheck/{{pre.year}}/{{pre.month}}/{{pre.day}}/">昨日</a> <a href="/dlog/dcheck/{{next.year}}/{{next.month}}/{{next.day}}/">次日</a>
	[当前检视日期 ： {{ cdate|date:"Y/m/d D" }}]
	<table class="doclist" width="100%" cellspacing="0" cellpadding="3" border="0"><tbody>
		<tr class="person_day3" valign="top">
			<td width="5"><b>#</b></td>
			<td width="50" align="center">作者</td>
			<td width="10" align="center">Y/N</td>
			<td width="250" align="center">当日小结</td>
			<td align="center">次日安排</td>
			<td width="70" align="center">操作</td>
		</tr>
		{% for chkitem in dlogs %}
		{% if chkitem.log %}
		<tr valign="top" onmouseout="this.style.backgroundColor='#f8f8f0'" onmouseover="this.style.backgroundColor='#ffc900'" style="background-color: #f8f8f0;" class="tally_data_1">
		{% else %}
		<tr valign="top" onmouseout="this.style.backgroundColor='#ff8888'" onmouseover="this.style.backgroundColor='#ffc900'" style="background-color: #ff8888;" class="tally_data_1">
		{% endif %}
			<td class="app listLine"><font color="#000000"><b>{{forloop.counter}}</b></font></td>
			<td align="center" class="app listLine"><font color="#000000">{{chkitem.user.first_name}} {{chkitem.user.last_name}}</font></td>
			<td align="center" class="app listLine"><font color="#000000">{{ chkitem.log|yesno:"Y,N,N" }}</font></td>
			<td class="app listLine" title="点击查看" onclick="view_dlog_item({{chkitem.log.id}});return false;"><font color="#000000">{{ chkitem.log.content }}</font></td>
			<td class="app listLine" title="点击查看" onclick="view_dlog_item({{chkitem.log.id}});return false;"><font color="#000000">{{ chkitem.log.plan }}</font></td>
			<td align="center" class="app listLine"><font color="#000000"/>
			{% if chkitem.log %}
			<a href="/dlog/modify/{{chkitem.log.id}}" title="修改">修改</a> | <a href="/dlog/delete/{{chkitem.log.id}}" title="删除">删除</a>
			{% else %}
			{% if istoday %}
			<a href="/dlog/add/" onclick="urchinTracker('/dlog/add/?in_dcheck')">新建</a>
			{% else %}
			<a href="/dlog/add/?y={{cdate.year}}&m={{cdate.month}}&d={{cdate.day}}" onclick="urchinTracker('/dlog/add/?in_dcheck')">补写</a>
			{% endif %}
			{% endif %}
			</td>
		</tr>
		{% endfor %}
	</tbody></table>	
{% endblock %}

{% block function %}
{% if groups %}
<br/>按小组浏览
<div class="sbjtd">
{% for group in groups %}
◆&nbsp;<a href="/dlog/dcheck/{{cdate.year}}/{{cdate.month}}/{{cdate.day}}/?group={{group.id}}">{{group.name}}</a><br/>
{% endfor %}
</div>
{% endif %}
{% endblock %}